package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import com.huawei.support.widget.HwSpinner;
import java.lang.ref.WeakReference;

public class fmm extends SkinAttr {

    static final class a extends fkz<SkinAttr, Drawable> {
        private WeakReference<HwSpinner> ˋ;

        private a(HwSpinner hwSpinner) {
            this.ˋ = new WeakReference(hwSpinner);
        }

        public void ॱ(Drawable drawable) {
            HwSpinner hwSpinner = (HwSpinner) this.ˋ.get();
            if (hwSpinner != null) {
                hwSpinner.setPopupBackgroundDrawable(drawable);
            }
        }
    }

    public fmm() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwSpinner) {
            HwSpinner hwSpinner = (HwSpinner) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new a(hwSpinner)).ॱ(z);
            }
        }
    }
}
